<template>
  <div class="market-status">
    <span class="status-item">
      <span class="label">上证指数</span>
      <span class="value">3,245.67</span>
      <span class="change up">+1.23%</span>
    </span>
    <span class="status-item">
      <span class="label">深证成指</span>
      <span class="value">11,234.56</span>
      <span class="change up">+0.89%</span>
    </span>
    <span class="status-item">
      <span class="label">创业板指</span>
      <span class="value">2,345.78</span>
      <span class="change down">-0.45%</span>
    </span>
  </div>
</template>

<script>
export default {
  name: 'MarketStatus'
}
</script>

<style scoped>
.market-status {
  display: flex;
  gap: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-item .label {
  font-size: 14px;
  color: #606266;
  margin-bottom: 8px;
}

.status-item .value {
  font-size: 20px;
  font-weight: bold;
  color: #303133;
}

.status-item .change {
  font-size: 14px;
  margin-top: 4px;
}

.change.up {
  color: #f56c6c;
}

.change.down {
  color: #67c23a;
}
</style> 